<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	response.setHeader("X-Frame-Options","SAMEORIGIN");
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>网点信息</title>
<jsp:include page="../../public/public.jsp"/>
<!--上传  -->
<script type="text/javascript" src="<%=basePath%>them/jquery-easyui-1.4.2/ajaxfileupload.js"></script>
<body>
	<!-- 菜单按钮、搜索框 -->
		<div id="menu_tb" style="height:auto;">
		    <table cellspacing="0" cellpadding="0" style="border-bottom: 1px solid #cccccc"  width="100%">
		        <tr>
		        	<td style="height:50px;padding-left:20px">
		        	 	网点名称:<input id="networkNameMsgId" class="easyui-textbox" data-options="width:100"/>
		        	 
		        	 	联系电话:<input id="phoneMsgId" class="easyui-textbox" data-options="width:100"/>
						<select id="isDelMsgId" class="easyui-combobox" name="dept"
							data-options="editable:false"
						 style="width:100px;">   
						   		<option value="">全部</option>
								<option value="1">启用</option>
								<option value="2">禁用</option>   
						</select> 
		        	 	<a href="javascript:void(0)" onclick="init()" class="easyui-linkbutton"
		        	 	style="margin-left: 30px;" 
		        	 	 data-options="width:100,height:30,iconCls:'icon-search'">搜&nbsp;&nbsp;&nbsp;&nbsp;索</a>
		            	<a href="javascript:void(0)" onclick="chongzhi()" class="easyui-linkbutton" 
		            	style="margin-left: 10px;" 
		            	data-options="width:100,height:30,iconCls:'icon-remove'">重&nbsp;&nbsp;&nbsp;&nbsp;置</a>
		            </td>
		     </tr>
		     </table>
		     
		     <table style="height: auto;">       
		     	<tr>
		            <td>
		                <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-mini-refresh" plain="true" 
		                onclick="refresh()">刷新列表</a>
		            </td>
		            <td>
		                <div class="datagrid-btn-separator"></div>
		            </td>
		            <td>
		                <a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-mini-edit" plain="true" 
		                onclick="addOrUpdateNetwork(1)">新增网点</a>
		            </td>
		            <td>
		                <div class="datagrid-btn-separator"></div>
		            </td>
		            <td>
		            	<a href="javascript:void(0)" class="easyui-linkbutton" iconcls="icon-man" plain="true" 
		            	onclick="addOrUpdateNetwork(2)">修改网点</a>
		            </td>
		            <td>
		                <div class="datagrid-btn-separator"></div>
		            </td>
		        </tr>
		    </table>
		</div>	
		<!-- end -->
	<table id="dg" style="width:100%;height: 320px;" data-options="
				url:'<%=basePath %>network/queryNetwork',
				rownumbers:true,
				singleSelect:true,
				autoRowHeight:false,
				pagination:true,
				pageSize:10">
		<thead>
			<tr>
				<th field="networkName" width="250" align="center">网点名称</th>
				<th field="phone" width="150" align="center">联系电话</th>
				<th field="address" width="350" align="center">地址</th>
								
				<th field="createTime" width="150" align="center" formatter="createTimeformatter">创建时间</th>
				<th field="isDel" width="100" align="center" formatter="isdelformatter" >启用/禁用</th>
			</tr>
		</thead>
	</table>
	
	<!-- 添加窗口表单 -->
		<div id="add" class="easyui-window" data-options="modal:true,closed:true,iconCls:'icon-edit'" style="width:300px;height:370px;padding:10px;"> 
			<form id="addForm" method="post">
		  		<table align="center" style="margin-top:20px">
		    		<tr style="height: 30px">
		    			<td>网点名称:</td>
		    			<td>
		    			<input  id="networkNameId" class="easyui-textbox" 
		    				data-options="width:200,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>地址:</td>
		    			<td>
		    			<input  id="addressId" class="easyui-textbox" 
		    				data-options="width:200,required:true"/>
		    			</td>
		    		</tr>
		    		
		    		<tr style="height: 30px">
		    			<td>联系电话:</td>
		    			<td>
		    			<input  id="phoneId" class="easyui-textbox" 
		    				data-options="width:200,required:true"/>
		    			</td>
		    		</tr>
		    		<tr style="height: 30px">
		    			<td>地图图片:</td>
		    			<td>
		    				<input id="imgId" name="imgId" type="file" onchange="fn_img_upload()"/>
						<input name="mapImg" id="mapImg" type="hidden"/>
		    			</td>
		    		</tr>
		    		<tr>
	  					<td></td>
						<td>
							<img id="show_img" src="" width="120" height="85">
						</td>
  					</tr>
		   		</table>
			</form>
		</div>
	<!--添加窗口表单 end -->
<script type="text/javascript" src="../../them/js/network.js"></script>	
</body>
</html>